package com.lp.service;

import com.lp.po.Teacher;

import java.util.List;


public interface TeacherService {
    int getCount() throws Exception;
    int getCountByName(String username) throws Exception;
    List<Teacher> findAllTeacher(Integer toPageNo);
    //模糊查询
    List<Teacher> findByTeacherName( Integer toPageNo,String username);
    //查询工号
    boolean save(Teacher teacher);
    //编辑教师按userid查找
    Teacher findById(Integer userid);
    //按userid更新教师
    void updataById(Integer userid, Teacher Teacher) throws Exception;
    //按userid删除教师
    void removeById(Integer userid);


    /*小程序模块*/
    List<Teacher> wxfindAllTeacher(Integer collegeid);
    List<Teacher> wxFindTeacherWithDepID(Integer collegeid);
}
